package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HJ
 * @date 2024/1/15 10:01
 */
@NoArgsConstructor
@Data
public class NormResourceProvidersPO {


    @JsonProperty("resource_providers")
    private List<ResourceProvidersDTO> resourceProviders;

    @NoArgsConstructor
    @Data
    public static class ResourceProvidersDTO {
        @JsonProperty("generation")
        private Integer generation;
        @JsonProperty("uuid")
        private String uuid;
        @JsonProperty("links")
        private List<LinksDTO> links;
        @JsonProperty("name")
        private String name;
        @JsonProperty("parent_provider_uuid")
        private String parentProviderUuid;
        @JsonProperty("root_provider_uuid")
        private String rootProviderUuid;

        @NoArgsConstructor
        @Data
        public static class LinksDTO {
            @JsonProperty("href")
            private String href;
            @JsonProperty("rel")
            private String rel;
        }
    }
}
